import request from '@/utils/request'
import Cookies from 'js-cookie'
// 分页
export function getPage(data) {
    return request({
        url: '/Stock_check_statistic/stock_check_detail_page',
        method: 'post',
        data: data
    })
}
// 列表
export function getList(data) {
    return request({
        url: '/Stock_check_statistic/stock_check_detail',
        method: 'post',
        data: data
    })
}

// export function getList(data, page) {
//     return request({
//         url: '/Stock_check_statistic/stock_check_detail/' + (page ? page : 1),
//         method: 'post',
//         data: data
//     })
// }
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Stock_check_statistic/stock_check_detail_excel?store_id=${data.store_id}&time=${data.time}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
